<?php
$ArSetores = Dracosys::getSessionValue(SESSION_INTERFACE, 'SectorsList');
$ArClientes = Dracosys::getSessionValue(SESSION_INTERFACE, 'CustomersList');
?>

<h2>Cadastrar Chamado Telefônico</h2>
<section id="CreatePhoneCalled">
    <form method="post" action="<?=DRA_URL?>atendimento/inserir-chamado-telefonico" name="FormCriarChamadoTelefonico">
        <section id="CreatePhoneCalled_Type">
            <div class="title" id="CreatePhoneCalled_toggleFerramentas">Tipo de Cliente</div>
            <div class="inp_txt unique">
                <input type="checkbox" name="EnCustomer" value="IS_CUSTOMER" id="CreatePhoneCalled_Juridica" checked="checked" class="radio" /> <label for="CreatePhoneCalled_Juridica">Cliente está cadastrado no sistema</label>
            </div>
        </section>
        <section id="CreatePhoneCalled_Dados" class="section-update">
            <div class="out_txt big"><label for="CreatePhoneCall_StCliente">Cliente</label></div>
            <div class="inp_txt big">
                <select name="IDCliente" id="CreatePhoneCall_CustomerSearch">
                    <?php foreach($ArClientes as $Customer): ?>
                        <option value="<?=$Customer->getIDCliente()?>"><?=$Customer->getCustomerName()?></option>
                    <?php endforeach; ?>
                </select>
            </div>
            <div class="out_txt big"><label for="CreatePhoneCall_IDSetor">Setor</label></div>
            <div class="inp_txt big">
                <select name="IDSetor" id="CreatePhoneCalled_IDSetor">
                    <?php foreach($ArSetores as $Sector): ?>
                        <option value="<?=$Sector->getIDSetor()?>"><?=$Sector->getStNome()?></option>
                    <?php endforeach; ?>
                </select>
            </div>
            <div class="out_txt big"><label for="CreatePhoneCall_StTitulo">Título</label></div>
            <div class="inp_txt big"><input type="text" name="StTitulo" id="CreatePhoneCall_StTitulo" value="" /></div>
            <div class="out_txt big textarea"><label for="CreatePhoneCall_TxMensagem">Mensagem</label></div>
            <div class="inp_txt big textarea">
                <textarea name="TxMensagem" id="CreatePhoneCall_TxMensagem"></textarea>
            </div>
        </section>
        <div class="btn"><button class="v1">Cadastrar</button></div>
    </form>
</section>